package com.cade.agriculturemall.view.home.search;

import android.database.Observable;

import java.io.Serializable;

/**
 * Created by hshunxin on 2018/2/10.
 */

public class SearchViewModel<T> extends Observable implements Serializable {
    private boolean isChecked;
    private String key;
    private String value;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public SearchViewModel(String key, String value) {
        this.key = key;
        this.value = value;

    }

    public SearchViewModel() {
    }

    public SearchViewModel(boolean isChecked, String key, String value) {
        this.isChecked = isChecked;
        this.key = key;
        this.value = value;
    }

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

}
